﻿using System.ComponentModel;
using System.Windows;
using System.Windows.Media;

namespace Brjnk.GpxExplorer.UI
{
    /// <summary>
    /// Interaction logic for BitmapExportPreviewWindow.xaml
    /// </summary>
    public partial class BitmapExportPreviewWindow : Window, INotifyPropertyChanged
    {
        public BitmapExportPreviewWindow()
        {
            InitializeComponent();
        }

        private ImageSource image;

        public ImageSource Image
        {
            get { return image; }
            set { image = value; OnPropertyChanged("Image"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null) PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}